package com.pwt.model;

import com.pwt.annotation.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author dw
 * @version 1.0.0
 * @date 2021/8/31
 */
@Data
@Schema(name = "产品管理模型")
public class ProductManageModel {

    @Schema(name = "id",description = "主键id")
    @NotBlank(groups = Update.class,message = "修改时必传！")
    private String id;
    /**
     * 产品名称
     * nullable : true
     * default  : null
     */
    @Schema(name = "name",description = "产品关联id")
    @Size(max = 64,message = "名字最大不能超过64个字！")
    @NotBlank(message = "不能为空！")
    private Integer teteil;

    /**
     * 颜色十六进制
     * nullable : true
     * default  : null
     */
    @Schema(name = "color",description = "颜色十六进制")
    @NotBlank(message = "请添加颜色！")
    private String color;

}
